{include file="admin/top.php" subject='orders'}
{include file="orders/top.php" subject='orders'}

<div id="content">
  <form method="post">
  {orders limit=1 id=$segment.orders_id status=view}
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
      <tr>
        <td width="100" class="title">仓库:</td>
        <td class="content">{$orders.shop}</td>
      </tr>
      <tr>
        <td class="title">产品名称:</td>
        <td class="content">{$orders.product} {$orders.spec} / {$orders.unit}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">数量:</td>
        <td class="content">{$orders.number+0}</td>
      </tr>
      <tr>
        <td class="title">出库时间:</td>
        <td class="content">{$orders.thedate|date_format:"%Y-%m-%d"}</td>
      </tr>
      <tr class="noline">
        <td class="title">备注说明:</td>
        <td class="content">{$orders.memo|nl2br}&nbsp;</td>
      </tr>
    </table>
    
    <div class="fr mt10">
    {if $orders.timestocked==0 }<a class="btn" href="{$site_admin}m=inventory&s=orders.php&orders_id={$orders.id}&uri=stockcancel" onclick="return confirm('操作不可恢复, 确定取消出库?')">取消出库？</a>{/if}
    <a href="javascript:void(0)" class="btn" onclick="location.href='{$site_admin}m=inventory&s=orders.php&page={$smarty.get.page}&status={$smarty.get.status}'">返回</a> 
    </div>
    {/orders}
  </form>
</div>
{include file="admin/bottom.php"}
</body>
</html>
